package com.itheima.day02.demo2;

public class Refrigerator  extends Appliance implements  Socketsc{
    @Override
    public void open() {
        System.out.println("给冰箱插上电源。");
        sockesc();
    }

    @Override
    public void close() {
        System.out.println(" 将冰箱的电源拔出。");
    }

    public void dong(){
        System.out.println("正在冻冰淇淋");
    }

    @Override
    public void sockesc() {
        System.out.println("连接电源成功");
    }
}
